<template>
	<view id="notice">
		<u-parse :content="content"></u-parse>
	</view>
</template>

<script>
import { getNotice } from '../../api/notice'
	export default {
		data () {
			return {
				queryParam: {
					type: 5,
					orderBy: 'create_time desc'
				},
				content: ''
			}
		},
		mounted () {
			this.getList()
		},
		methods: {
			getList () {
				getNotice(this.queryParam).then(res => {
					this.content = res.data.rows[0].noticeContent
					uni.setNavigationBarTitle({
						title: res.data.rows[0].noticeTitle
					})
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	#notice {
		padding: 10upx 20upx;
	}
</style>